package com.boot.redis.common;

import lombok.ToString;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import java.io.Serializable;

/**
 * <p>Title: BaseEntity</p>
 * <p>Description:通用实体类</p>
 *
 * @author ZhiPeng_Chen
 * @version V1.0
 * @date: 2018/7/4
 */
@ToString
public abstract class BaseEntity implements Serializable {

    @Id
    @KeySql(genId = UUIdGenId.class)
    private String id;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
